const http = require('http');
const _url = require('url');
const fs = require('fs');

http.createServer(function(req,res){

    var obj = _url.parse( req.url, true );
    var url = obj.pathname;
    var GET = obj.query;
    console.log(url,GET);

    res.end();
}).listen(8080);